package com.aaa.dao;

import com.aaa.pojo.TermFinancial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Mapper
@Repository
public interface TermFinancialDao {
    //期限理财
    public List<TermFinancial> selectTerm();
    TermFinancial selectByTid(@Param("tid") Integer tid);
    public Boolean addTermMoney(@Param("u_id")Integer u_id, @Param("t_id") Integer t_id,@Param("amount") Double amount);
    public void addRecordMoney(@Param("t_amount") Double pay_amount, @Param("t_name") String t_name);
}
